package two_shang._11_16;

//实验：关于线程
public class Test01 {
    public static void main(String[] args) {
        MyThread thread = new MyThread();

        new Thread(thread).start();
        new Thread(thread).start();
        new Thread(thread).start();
    }
}

class MyThread implements Runnable {
    int count = 0;

    @Override
    public synchronized void run() {
        for (; count <= 80; count++) {
            System.out.println(Thread.currentThread().getName() + "分发笔记中ing……" + "    第   " + count + "份");
        }
    }
}